import { Global, Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { AccountController } from './controller/account.controller';
import { AccountService } from './services/account.service';
import AccountSchema from './schemas/account.schemas';
import { Md5Service } from './services/md5.service';

@Global()
@Module({
  imports: [
    MongooseModule.forFeature([
      { name: 'Account', schema: AccountSchema },
    ])
  ],
  controllers: [AccountController],
  providers: [Md5Service, AccountService],
  exports: [AccountService]
})
export class UserModule { }